package order.service.impl;

import order.service.Order;
import order.service.pojo.Stock;

public class SellImpl implements Order {
    private Stock stock;
    public SellImpl(Stock stock){
        this.stock = stock;
    }
    @Override
    public void execute() {
        if (stock!=null){
            stock.sell();
        }
    }
}
